package com.kongxx.wicketstudy.validating;

import org.apache.wicket.validation.IValidatable;
import org.apache.wicket.validation.validator.AbstractValidator;

public class PatronCodeValidator extends AbstractValidator {

	protected void onValidate(IValidatable validatable) {
		if (!Request.isPatronCodeValid((String) validatable.getValue())) {
			error(validatable);
		}
	}
}   